package simi;

import java.io.Serializable;
  
public class Model implements Serializable, Comparable {

	/**
	 * Model is serializable, because it implements Serializable. So it needs a
	 * UID.
	 */
	private static final long serialVersionUID = 3476051802861500574L;
	private String name;
	private String link;
		
	public Model(){
		super();
	}
	
	public String getName(){
		return this.name;
	}
	
	public void setName(String name){
		this.name = name;
	}
	
	public String getLink(){
		return this.link;
	}
	
	public void setLink(String link){
		this.link = link;
	}

	public int compareTo(Object otherModel) {
 		return this.name.compareTo(((Model)otherModel).getName());
	}
}	